/*$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$                                                                    $$$
$$$  MODULO:    general.h                                              $$$
$$$                                                                    $$$
$$$																	   $$$	
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/

int usrLevantoConfiguracion (char *wcArchConf,char *pcIPDestino,char *pcPortDestino, char *pcPortOrigen,char * pcAlmacen);
void usrBorrarBuffer (char *prBuffer);
int usrValidarConfig(char *pcPuntero, int iOpcion);
void usrEliminaFinLinea(char *pcPalabra);
void usrGrabarLog (char* cTipo, const char * cvDetalle,HANDLE hFile,int iIdHilo);
void usrGotoxy( short x, short y ); 
void usrGenerarId (unsigned char  *cDescriptorID);
void usrGrabarEstadisticas ( const char * cArchivo, HANDLE hFileEstadisticas,int Bytes,double stTime,int iModo,int iCantDesc,long stFTPK,long stFTPU,long stFTP);
void usrInicializarSemaforos (void);
void usrTiempoInicial(int lastCPU,int lastSysCPU,int lastUserCPU);
double timeval_diff(struct timeval *a, struct timeval *b);